<?php
/**
 * PatientSignalUpload6 model class file.
 *
 * @package   models
 * @since     1.0
 * @filesource
 */

/**
 * The 6th form in uploading signal, uploads file.
 * 
 * PatientSignalUpload0 is a Form class. 
 * It is the data structure for keeping form data.
 */
class PatientSignalUpload6 extends CFormModel{

	/**
	 * @var array
	 */
	public $signalFileIds;
	
	/**
	 * Declares the validation rules.
	 * The rules will be used when requesting validation by call self.validate().
	 * Many class method will call self.validate(), eg: CActiveRecord.save().
	 * @return array validation rules for model attributes.
	 * @see PatientSignal
	 */
	public function rules()
	{
		return array(
			array('signalFileIds','required','on'=>'next','message'=>'At lease one SMR file is required for upload signal'),
			array('signalFileIds','safe'),
		);
	}

	/**
	 * Returns the labels for each column variables.
	 * This will be used to render label on page.
	 * @return array customized attribute labels (name=>label)
	 */
	public function attributeLabels()
	{
		return array(
			'signalFileIds' => 'Signal Files',
		);
	}
}